import get_weth_attr
import datetime

import weath_locale


def test_get_city_name():
    """Test rename func"""
    res = get_weth_attr.city_rename("Yekaterinburg")
    assert res == "Екатеринбург"
    res = get_weth_attr.city_rename("Kazan")
    assert res == "Казань"
    res = get_weth_attr.city_rename("London")
    assert res == "London"

def test_get_weather_description():
    """Test rename weather description"""
    res = get_weth_attr.weather_rename("Rain")
    assert res == "Дождь"
    res = get_weth_attr.weather_rename("Snow")
    assert res == "Снег"
    res = get_weth_attr.weather_rename("rain")
    assert res == "rain"


def test_rename():
    """Test rename func"""
    res = get_weth_attr.city_rename("Yekaterinburg")
    assert res == "Екатеринбург"
    res = get_weth_attr.city_rename("Kazan")
    assert res == "Казань"
    res = get_weth_attr.city_rename("London")
    assert res == "London"
